Keyword : Category :
 
 
 
 
Windows
Unix
Php and mysql
Linux
Java
Mobile programming
Certification
Asterisk
Python
Autocad
3d-animation
Hacks
Programming
Hardware
Networking
Web design
Multimedia - graphics
Simple steps
Dummies
.net programming
Oracle
Sql server
Operating system
Telecommunications
Microsoft
Office
Web development
Cisco
Graphics
C sharp
Software development
Database
Computer science
Uml
Security
General
Cms
Mac
Android
 
 
Email:
 
 
No bestsellers available!
 
Book details / order
PYTHON COOKBOOK, 3RD EDITION RECIPES FOR MASTERING PYTHON 3
If you need help writing programs in python 3, or want to update older python 2 code, this book is just the ticket. packed with practical recipes written and tested with python 3.3, this unique cookbook is for experienced python programmers who want to focus on modern tools and idioms. inside, you’ll find complete recipes for more than a dozen topics, covering the core python language as well as tasks common to a wide variety of application domains. each recipe contains code samples you can use in your projects right away, along with a discussion about how and why the solution works. topics include: data structures and algorithms strings and text numbers, dates, and times iterators and generators files and i/o data encoding and processing functions classes and objects metaprogramming modules and packages network and web programming concurrency utility scripting and system administration testing, debugging, and exceptions c extensions about the authors david beazley is an independent software developer and book author living in the city of chicago. he primarily works on programming tools, provide custom software development, and teach practical programming courses for software developers, scientists, and engineers. he is best known for his work with the python programming language, for which he has created several open-source packages (e.g., swig and ply) and authored the acclaimed python essential reference. he also has significant experience with systems programming in c, c++, and assembly language. brian k. jones is a system administrator in the department of computer science at princeton university. table of contents: chapter 1 data structures and algorithms unpacking a sequence into separate variables unpacking elements from iterables of arbitrary length keeping the last n items finding the largest or smallest n items implementing a priority queue mapping keys to multiple values in a dictionary keeping dictionaries in order calculating with dictionaries finding commonalities in two dictionaries removing duplicates from a sequence while maintaining order naming a slice determining the most frequently occurring items in a sequence sorting a list of dictionaries by a common key sorting objects without native comparison support grouping records together based on a field filtering sequence elements extracting a subset of a dictionary mapping names to sequence elements transforming and reducing data at the same time combining multiple mappings into a single mapping chapter 2 strings and text splitting strings on any of multiple delimiters matching text at the start or end of a string matching strings using shell wildcard patterns matching and searching for text patterns searching and replacing text searching and replacing case-insensitive text specifying a regular expression for the shortest match writing a regular expression for multiline patterns normalizing unicode text to a standard representation working with unicode characters in regular expressions stripping unwanted characters from strings sanitizing and cleaning up text aligning text strings combining and concatenating strings interpolating variables in strings reformatting text to a fixed number of columns handling html and xml entities in text tokenizing text writing a simple recursive descent parser performing text operations on byte strings chapter 3 numbers, dates, and times rounding numerical values performing accurate decimal calculations formatting numbers for output working with binary, octal, and hexadecimal integers packing and unpacking large integers from bytes performing complex-valued math working with infinity and nans calculating with fractions calculating with large numerical arrays performing matrix and linear algebra calculations picking things at random converting days to seconds, and other basic time conversions determining last friday’s date finding the date range for the current month converting strings into datetimes manipulating dates involving time zones chapter 4 iterators and generators manually consuming an iterator delegating iteration creating new iteration patterns with generators implementing the iterator protocol iterating in reverse defining generator functions with extra state taking a slice of an iterator skipping the first part of an iterable iterating over all possible combinations or permutations iterating over the index-value pairs of a sequence iterating over multiple sequences simultaneously iterating on items in separate containers creating data processing pipelines flattening a nested sequence iterating in sorted order over merged sorted iterables replacing infinite while loops with an iterator chapter 5 files and i/o reading and writing text data printing to a file printing with a different separator or line ending reading and writing binary data writing to a file that doesn’t already exist performing i/o operations on a string reading and writing compressed datafiles iterating over fixed-sized records reading binary data into a mutable buffer memory mapping binary files manipulating pathnames testing for the existence of a file getting a directory listing bypassing filename encoding printing bad filenames adding or changing the encoding of an already open file writing bytes to a text file wrapping an existing file descriptor as a file object making temporary files and directories communicating with serial ports serializing python objects chapter 6 data encoding and processing reading and writing csv data reading and writing json data parsing simple xml data parsing huge xml files incrementally turning a dictionary into xml parsing, modifying, and rewriting xml parsing xml documents with namespaces interacting with a relational database decoding and encoding hexadecimal digits decoding and encoding base64 reading and writing binary arrays of structures reading nested and variable-sized binary structures summarizing data and performing statistics chapter 7 functions writing functions that accept any number of arguments writing functions that only accept keyword arguments attaching informational metadata to function arguments returning multiple values from a function defining functions with default arguments defining anonymous or inline functions capturing variables in anonymous functions making an n-argument callable work as a callable with fewer arguments replacing single method classes with functions carrying extra state with callback functions inlining callback functions accessing variables defined inside a closure chapter 8 classes and objects changing the string representation of instances customizing string formatting making objects support the context-management protocol saving memory when creating a large number of instances encapsulating names in a class creating managed attributes calling a method on a parent class extending a property in a subclass creating a new kind of class or instance attribute using lazily computed properties simplifying the initialization of data structures defining an interface or abstract base class implementing a data model or type system implementing custom containers delegating attribute access defining more than one constructor in a class creating an instance without invoking init extending classes with mixins implementing stateful objects or state machines calling a method on an object given the name as a string implementing the visitor pattern implementing the visitor pattern without recursion managing memory in cyclic data structures making classes support comparison operations creating cached instances chapter 9 metaprogramming putting a wrapper around a function preserving function metadata when writing decorators unwrapping a decorator defining a decorator that takes arguments defining a decorator with user adjustable attributes defining a decorator that takes an optional argument enforcing type checking on a function using a decorator defining decorators as part of a class defining decorators as classes applying decorators to class and static methods writing decorators that add arguments to wrapped functions using decorators to patch class definitions using a metaclass to control instance creation capturing class attribute definition order defining a metaclass that takes optional arguments enforcing an argument signature on *args and **kwargs enforcing coding conventions in classes defining classes programmatically initializing class members at definition time implementing multiple dispatch with function annotations avoiding repetitive property methods defining context managers the easy way executing code with local side effects parsing and analyzing python source disassembling python byte code chapter 10 modules and packages making a hierarchical package of modules controlling the import of everything importing package submodules using relative names splitting a module into multiple files making separate directories of code import under a common namespace reloading modules making a directory or zip file runnable as a main script reading datafiles within a package adding directories to sys.path importing modules using a name given in a string loading modules from a remote machine using import hooks patching modules on import installing packages just for yourself creating a new python environment distributing packages chapter 11 network and web programming interacting with http services as a client creating a tcp server creating a udp server generating a range of ip addresses from a cidr address creating a simple rest-based interface implementing a simple remote procedure call with xml-rpc communicating simply between interpreters implementing remote procedure calls authenticating clients simply adding ssl to network services passing a socket file descriptor between processes understanding event-driven i/o sending and receiving large arrays chapter 12 concurrency starting and stopping threads determining if a thread has started communicating between threads locking critical sections locking with deadlock avoidance storing thread-specific state creating a thread pool performing simple parallel programming dealing with the gil (and how to stop worrying about it) defining an actor task implementing publish/subscribe messaging using generators as an alternative to threads polling multiple thread queues launching a daemon process on unix chapter 13 utility scripting and system administration accepting script input via redirection, pipes, or input files terminating a program with an error message parsing command-line options prompting for a password at runtime getting the terminal size executing an external command and getting its output copying or moving files and directories creating and unpacking archives finding files by name reading configuration files adding logging to simple scripts adding logging to libraries making a stopwatch timer putting limits on memory and cpu usage launching a web browser chapter 14 testing, debugging, and exceptions testing output sent to stdout patching objects in unit tests testing for exceptional conditions in unit tests logging test output to a file skipping or anticipating test failures handling multiple exceptions catching all exceptions creating custom exceptions raising an exception in response to another exception reraising the last exception issuing warning messages debugging basic program crashes profiling and timing your program making your programs run faster chapter 15 c extensions accessing c code using ctypes writing a simple c extension module writing an extension function that operates on arrays managing opaque pointers in c extension modules defining and exporting c apis from extension modules calling python from c releasing the gil in c extensions mixing threads from c and python wrapping c code with swig wrapping existing c code with cython using cython to write high-performance array operations turning a function pointer into a callable passing null-terminated strings to c libraries passing unicode strings to c libraries converting c strings to python working with c strings of dubious encoding passing filenames to c extensions passing open files to c extensions reading file-like objects from c consuming an iterable from c diagnosing segmentation faults appendix further reading online resources books for learning python advanced books index.

Author : Brian jones, david beazley
Publication : Oreilly
Isbn : 9789351101406
Store book number : 105
NRS 1160.00
  
Order This Book
*Marked Field Is Necessary
Your Name: *
Your Address:
Your Email: *
Your Cell Phone:
Your Work Phone:
Quantity: *
Total:
Message (if any)
Security code: *
Case Sensitive
 
 
Packt publication
Microsoft press
Wrox
Bpb
Phi
Dreamtech press
Sybex
Wiley
Tata
Oreilly
Macmilan
Vikas
Apress
Spd
Pearson
Cambridge
Oxford
Idg
Charles river media
Murach
Niit
Black book
Bible
Elsevier
Sk kataria
Pragmatic bookshelf
Fusion books
 
 
HEAD FIRST KOTLIN: A BRAIN-FRIENDLY GUIDE
NRS 2600.00
 
 
Professional ASP.NET MVC 4
Mastering Microsoft Exchange ...
Android Hacker's Handbook
CCNA Cisco Certified Network ...
Windows Phone 7 Application ...
Beginning Drupal (Wrox Progr ...
Troubleshooting Windows 7 In ...
 More>>
 
All Right Reserved © bookplus.com.np 2008